﻿<local:CriteriaControlBase   
    x:Class="Rio.Framework.Pages.CriteriaControls.DoubleIndexControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Rio.Framework.Pages.CriteriaControls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
    mc:Ignorable="d"
    d:DesignHeight="40" d:DesignWidth="300">

    <local:CriteriaControlBase.Resources>
        <Style x:Key="MaskedTextBoxStyle" TargetType="TextBox">
            <Setter Property="Width" Value="230"/>
            <Setter Property="Margin" Value="5,0,5,0"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
        </Style>
    </local:CriteriaControlBase.Resources>

    <StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBlock Name="LabelControl" Style="{StaticResource LabelIndexStyle}" />
            <TextBlock Name="LabelMandatory" Text="*" Margin="0,0,5,0" Foreground="Red" Visibility="Collapsed"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBox Name="maskedTextBoxInput" Height="25" TextChanged="maskedTextBoxInput_TextChanged" Style="{StaticResource MaskedTextBoxStyle}" Margin="5,3,5,0" />

            <Button Name="FilterButton" Style="{StaticResource ButtonValidateHelpStyle}" Visibility="Collapsed" Click="buttonInput_Click" Width="25" Height="25">
                <Image Width="16" Height="16" Source="../../Assets/Images/Filter.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Button>
            <Button Name="DeleteButton" Style="{StaticResource ButtonValidateHelpStyle}" Visibility="Collapsed" Click="buttonDelete_Click" Width="25" Height="25">
                <Image Width="16" Height="16" Source="../../Assets/Images/RemoveControlSearch.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </Button>
        </StackPanel>
    </StackPanel>
</local:CriteriaControlBase>
